CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -O2

TARGET = tm1629a_test
SRCS = tm1629a_test.c
OBJS = $(SRCS:.c=.o)

.PHONY: all clean

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(OBJS) -o $(TARGET)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(TARGET) $(OBJS) 